<form class="form-horizontal form-validate form-modal" method="post" action="{:url('info')}">
  <div class="modal-dialog" style="width: 700px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">编辑商品</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <label class="control-label">商品名称：</label>
          <div class="col-sm-6">
            <input type="text" class="input-xlarge" data-rule-maxlength="20" data-rule-required="true" disabled name="goods_name" value="{$row.goods_name}" >
          </div>
        </div>
        <div class="form-group">
          <label class="control-label">商品原价格：</label>
          <div class="col-sm-6">
            <input type="text" class="input-xlarge" data-rule-maxlength="20" data-rule-ismoney="true" disabled data-rule-required="true" name="shop_price" value="{$row.shop_price}" >
          </div>
        </div>
        <div class="form-group">
          <label class="control-label">直播间价格：</label>
          <div class="col-sm-6">
            <input type="text" class="input-xlarge"  data-rule-required="true" data-rule-ismoney="true" name="live_price" value="{$row.live_price}" >
          </div>
        </div>
        <div class="form-group">
          <label class="control-label">直播上架库存：</label>
          <div class="col-sm-6">
            <input type="text" class="input-xlarge"  data-rule-required="true" data-rule-number="true" name="stock" value="{$row.stock}" >
          </div>
        </div>

      </div>
      <div class="modal-footer">
        <input  type="hidden" name="id" value="{$row.id|intval}"/>
        <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>保存</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
      </div>
    </div>
  </div>
</form>
<script>
  function nums_nums(type) {
    if (type==2) {
      $("input[name='task_nums']").show();
    } else {
      $("input[name='task_nums']").hide();
    }
  }
</script>